package com.qf.hospital.mapper;

import com.qf.hospital.entity.RegisteredType;
import com.qf.hospital.entity.RegisteredTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface RegisteredTypeMapper {
    long countByExample(RegisteredTypeExample example);

    int deleteByExample(RegisteredTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RegisteredType record);

    int insertSelective(RegisteredType record);

    List<RegisteredType> selectByExample(RegisteredTypeExample example);

    RegisteredType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RegisteredType record, @Param("example") RegisteredTypeExample example);

    int updateByExample(@Param("record") RegisteredType record, @Param("example") RegisteredTypeExample example);

    int updateByPrimaryKeySelective(RegisteredType record);

    int updateByPrimaryKey(RegisteredType record);

    @Select("select price from registered_type where id = #{id}")
    Integer findPriceByRegisteredId(@Param("id") Integer registeredId);
}